.navbar {
  box-shadow: 0 1px 0 0 var(--border) !important;
  transition: all var(--transition-base);
  height: var(--ifm-navbar-height);
  padding: var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal);
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar__brand {
  font-weight: 700;
  color: var(--primary);
}

.navbar__title {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.navbar__logo {
  height: 1.75rem;
  width: 1.75rem;
  margin-right: 0.5rem;
  transition: transform var(--transition-base);
}

.navbar__brand:hover .navbar__logo {
  transform: rotate(10deg);
}

.navbar__link {
  display: flex;
  align-items: center;
  font-size: 0.9375rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  font-weight: 500;
}

.navbar__link:hover {
  background-color: var(--primary-alpha-light);
  color: var(--primary);
}

.navbar__link--active {
  font-weight: 600;
  color: var(--primary);
  background-color: var(--primary-alpha-medium);
}

@media (max-width: 996px) {
  .navbar {
    height: auto;
    min-height: var(--ifm-navbar-height);
    padding: 0.5rem 1rem;
  }
  
  .navbar__brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 0;
  }
  
  .navbar__title {
    font-size: 1.2rem;
  }
  
  .navbar__logo {
    height: 1.5rem;
    width: 1.5rem;
  }
  
  .navbar-sidebar-toggle {
    position: relative;
    z-index: 10;
    margin-right: auto;
  }
  
  .navbar__search {
    position: relative;
    z-index: 10;
    margin-left: auto;
  }
  
  .navbar-sidebar {
    z-index: 15 !important;
  }
  
  .navbar__inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .navbar__items--left {
    width: 33%;
    justify-content: flex-start;
  }
  
  .navbar__items--right {
    width: 33%;
    justify-content: flex-end;
  }
  
  [class*="github-link"]:not(.header-github-link),
  a[aria-label*="GitHub"]:not(.header-github-link),
  .navbar__item[href="/"]:not(.navbar__brand), 
  .navbar__item[href$="/Java/"], 
  .navbar__item[href$="/Bedrock/"], 
  .navbar__item[href$="/about/"],
  .navbar__item[href*="Java"],
  .navbar__item[href*="Bedrock"],
  .navbar__item[href*="about"],
  .navbar__item:not(.navbar__logo):not(.navbar__title):not(.navbar__brand):not(.navbar-sidebar-toggle):not(.navbar__search):not(.header-github-link),
  .navbar__items--left .navbar__item:not(.navbar__brand):not(.navbar-sidebar-toggle) {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  .header-github-link {
    display: flex !important;
    width: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
    border-radius: 50%;
    background-color: rgba(125, 125, 125, 0.1);
    margin: 0 0.5rem !important;
  }
  
  .navbar-sidebar .menu__list-item a[href="/"],
  .navbar-sidebar .menu__list-item a[href$="/Java/"],
  .navbar-sidebar .menu__list-item a[href$="/Bedrock/"],
  .navbar-sidebar .menu__list-item a[href$="/about/"] {
    display: flex !important;
    width: auto !important;
    padding: inherit !important;
    margin: inherit !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  
  .navbar-sidebar-toggle,
  .navbar__brand,
  .navbar__search {
    display: flex !important;
  }
}

.header-github-link::after,
.github-icon-button::after {
  display: none !important;
}

